package org.ucas.kgraph.dao;

import java.util.List;
import java.util.Set;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import org.ucas.kgraph.entity.Role;
import org.ucas.kgraph.entity.Term;

@Repository
public interface RoleDao extends JpaRepository<Role,Long> {
	
	@Query("FROM Role t WHERE t.name = ?1")
	public List<Role> findByName(String name);
	
}
